import request from "../request";

export const getOneDictByCode = async (dictCode: string) => {
    const {code,data,msg} = await request.get("dict/info/" + dictCode);
    if (code!=='A000'){
        return data
    }
    return data
}

export const getDictAll = async (dictCode: any) => {
    const { code, data, msg } = await request.post("/dict/list/all", dictCode);
    if (code !== 'A000') {
        return data
    }
    return data
}

export const getDictLikeAll = async (dictCode: any) => {
    const { code, data, msg } = await request.post("/dict/like/list/all", dictCode);
    if (code !== 'A000') {
        return data
    }
    return data
}
